package com.zym.field_method11;

import java.util.Arrays;

public class PersonTest {

    public static void main(String[] args) {

        //类名.静态属性名
        Person.nationality = "中国";

        //类名.静态方法名
        Person.eat();


        Person person = new Person();
        person.setId(1);
        person.setName("张三");


//        person.nationality = "中国"; 不推荐

        System.out.println(person.toString());

        Person person2 = new Person();
        person2.setId(2);
        person2.setName("李四");

        System.out.println(person2.toString());


        //工具类
        System.out.println(Arrays.toString(new int[]{12, 67, 34}));

        //类名.静态方法名称
//        Arrays.sort();


    }
}
